Fedora 13
Sponsored Link

Configure WebDAV
2010/05/31
  Here is the example to configure for WebDAV.

[1] For example, I made a directory [security] and it makes possible to connect to WebDAV directory only by SSL.
[root@www ~]#
mkdir /home/security

[root@www ~]#
chown apache. /home/security

[root@www ~]#
chmod 770 /home/security

[root@www ~]#
vi /etc/httpd/conf.d/webdav.conf


Alias /share /home/security
<Location /share>
   DAV On
   SSLRequireSSL
   Options None
   AuthType Basic
   AuthName WebDAV
   AuthUserFile /etc/httpd/conf/.htpasswd
   <LimitExcept GET OPTIONS>
       Order allow,deny
       Allow from 10.0.0.
# add IP address you allow

       Require valid-user
   </LimitExcept>
</Location>


[root@www ~]#
htpasswd -c /etc/httpd/conf/.htpasswd fedora

New password:
# set password

Re-type new password:
# verify

Adding password for user fedora
[root@www ~]#
/etc/rc.d/init.d/httpd restart

Stopping httpd:
[ OK ]

Starting httpd:
[ OK ]
[2] It's a config on client PC (Windows XP).

(1) Open 'My Network Places' and Click 'Add a network place'.
 
(2) Click 'Next'
 
(3) Click 'Next'
 
(4) Specify network address of shared folder.
 
(5) Security alert is shown like below because I made Certification File for SSL by myself. it's no ploblem. Click 'Yes' and Proceed.
 
(6) Input any name of shared folder you like.
 
(7) Click 'Finish' and go next.
 
(8) Input user name and password you set with htpasswd
 
(9) Accessed
 
 
Tweet